﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;

namespace SanctusSoftware.Music.ChordSheetEditor.Client
{
  public class RichTextFormatColor
  {

    #region Properties

    public string Name { get; private set; }
    public object Tag { get; private set; }
    public Color Color { get; private set; }

    #endregion

    #region Constructor

    public RichTextFormatColor(string name, Color color)
      : this(name, color, null) { }

    public RichTextFormatColor(string name, Color color, object tag)
    {
      if (string.IsNullOrEmpty(name) || name.Trim().Length == 0)
      {
        name = color.ToString();
      }

      this.Name = name;
      this.Color = color;
      this.Tag = tag;
    }

    #endregion



  }
}
